import shutil
import os

def clear_files():
    if os.path.exists("./logs"):
        shutil.rmtree("./logs")
        os.mkdir("./logs")

    if os.path.exists("./pic/"):
        shutil.rmtree("./pic")
        os.mkdir("./pic")
    if os.path.exists("./result/"):
        shutil.rmtree("./result")
        os.mkdir("./result")
        
if __name__ == "__main__":
    clear_files()